//
//  YTImgeLoadProgressProtocol.swift
//  Kingfisher
//
//  Created by aron on 2018/5/25.
//

import Foundation

public protocol YTImgeLoadProgressProtocol: class {
    // 处理进度UI的初始化的方法->把UI添加到containerView上
    func containerView(_ containerObj: YTImgeContainerProtocol, containerView: UIView, setupUI: Bool);
    // 处理进度UI的->布局和设置进度UI的frame
    func containerView(_ containerObj: YTImgeContainerProtocol, containerView: UIView, layoutSubviews: Bool);
    // 处理进度UI->开始显示
    func containerView(_ containerObj: YTImgeContainerProtocol, containerView: UIView, startLoadImage: Bool);
    // 处理进度UI->设置进度值
    func containerView(_ containerObj: YTImgeContainerProtocol, containerView: UIView, loadingImageWithReceivedSize receivedSize: Int64, totalSize: Int64);
    // 处理进度UI->隐藏显示
    func containerView(_ containerObj: YTImgeContainerProtocol, containerView: UIView, completeLoadImage: Bool);
}
